"""打印一百以内的质数"""

zs = []
for n in range(2, 100):
    flag = True
    for i in range(2, n):
        if n % i == 0:
            flag = False
            break
    if flag:
        zs.append(n)
print("一百以内的质数: %s" % zs)
# print:一百以内的质数: [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]